<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>04-普通函数</title>

</head>
<body>

</body>
<script>

/*
* <!--    js函数就是方法-->
*
* */
function method01() {
    console.log("hello")
}
method01()

function method02(a,b) {
    console.log(a+b)
}
method02(1,2)

function  method03(a,b){
    return a+b;
}
let  result = method03(1,3)
console.log(result);

function  method04(a,b){
    return a+b;
}
let  result1 = method04(1,3,1)
console.log(result1);

</script>
</html>